package com.order.center.iclent;

import com.order.center.iclent.impl.PayCenterClientImpl;
import com.pay.center.common.req.PaymentReq;
import com.pay.center.common.resp.RespPayData;
import com.pay.center.common.resp.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 支付中心的远程接口
 */
@FeignClient(value = "PAY-CENTER",fallback = PayCenterClientImpl.class)
public interface IPayCenterClient {

    //

    /**
     * 网银统一支付接口
     * @param paymentReq
     * @return
     */
    @RequestMapping(value = "/payment/pay",method = RequestMethod.POST)
    public Response<RespPayData> pay(@RequestBody PaymentReq paymentReq);

}
